import request from '@/utils/request'

const api_name = `/api/order/orderInfo`

export default {

  /**
   * 提交订单
   * @param scheduleId
   * @param patientId
   */
  submitOrder(scheduleId, patientId) {
    return request({
      url: `${api_name}/auth/submitOrder/${scheduleId}/${patientId}`,
      method: 'post'
    })
  },
  /**
   * 查询订单信息
   * @param page
   * @param limit
   * @param searchObj
   */
  getPageList(page, limit, searchObj) {
    return request({
      url: `${api_name}/auth/${page}/${limit}`,
      method: `get`,
      params: searchObj
    })
  },
  /**
   * 订单状态
   */
  getStatusList() {
    return request({
      url: `${api_name}/auth/getStatusList`,
      method: 'get'
    })
  },
  /**
   * 获取订单详情
   * @param orderId
   */
  getOrders(orderId) {
    return request({
      url: `${api_name}/auth/getOrders/${orderId}`,
      method: `get`
    })
  },


}
